class HexViewer:
    def update(self, subject):
        print("HexViewer: subject %s has data 0x%x " % (subject.name, subject.data))
